import request from '@/utils/request'

/* 重点监控用水单位管理台账 */
// 列表查询
const keyMonitorWaterUnitList = function (params = {}) {
  return request({
    url: '/zy-api/api/monitorWater/findList',
    method: 'post',
    data: params
  })
}

// 新增
const addKeyMonitorWaterUnit = function (params = {}) {
  return request({
    url: '/zy-api/api/monitorWater/insert',
    method: 'post',
    data: params
  })
}

// 修改
const editKeyMonitorWaterUnit = function (params = {}) {
  return request({
    url: '/zy-api/api/monitorWater/update',
    method: 'post',
    data: params
  })
}

// 删除
const delKeyMonitorWaterUnit = function (params = {}) {
  return request({
    url: '/zy-api/api/monitorWater/delete',
    method: 'post',
    data: params
  })
}

// 审核
const auditKeyMonitorWaterUnit = function (params = {}) {
  return request({
    url: '/zy-api/api/monitorWater/review',
    method: 'post',
    data: params
  })
}

// 审批单位选项
const auditUnitOptions = function (adCd) {
  return request({
    url: '/zy-api/api/monitorWater/selectUnit',
    method: 'post',
    data: { adCd }
  })
}

export {
  keyMonitorWaterUnitList,
  addKeyMonitorWaterUnit,
  editKeyMonitorWaterUnit,
  delKeyMonitorWaterUnit,
  auditKeyMonitorWaterUnit,
  auditUnitOptions
}